<?php
if (!defined('CURRENT_PATH')){
	die('Hacking attempt');
	}
$mapConfig=spClass(site_config);	
if($_REQUEST['act']&&$_REQUEST['act']=='save'){
	//dump($this->spArgs());
	$saveMapArr=array('Addr'=>'company_addr','Tel'=>'company_tel','Fax'=>'company_fax','Matt'=>'map_att','Mlat'=>'map_lat');
	foreach($saveMapArr as $id=>$v){
		$mapConfig->update($conditions=array('desc_en'=>$v),$row=array('value'=>$this->spArgs($id)));
	}
	$this->success('恭喜，信息修改成功！');
}else{
	$res=$mapConfig->findAll($conditions="id>=19 and id<= 24");
	$this->res=$res;
	$this->display('management/mapinfo.html');		
}